package de.cbf.cam.dsa.facet.armor.persister.db4o.server.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import de.cbf.cam.dsa.facet.armor.persister.db4o.server.act.ActivatorFacetArmor_Db4oServer;
import de.cbf.util.db.db4o.preferences.PreferenceConstantsServer;

/**
 * Class used to initialize default preference values.
 */
public class PrefInit_FacetArmor_Db4oServer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 *
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = ActivatorFacetArmor_Db4oServer.getDefault().getPreferenceStore();		
		//server
		store.setDefault(PreferenceConstantsServer.P_Db4oLaunchServer							, true);
		String authorizedUsers =																"armor1,facet1;user1,password1";
		store.setDefault(PreferenceConstantsServer.P_Db4oDatabaseAuthorizedUsers				, authorizedUsers);
		store.setDefault(PreferenceConstantsServer.P_Db4oDatabaseFilename						, "O:/EOP-Kit/NPCGen/data/facet_armor.db4o");		
		store.setDefault(PreferenceConstantsServer.P_Db4oDatabasePort							, 11341);
		store.setDefault(PreferenceConstantsServer.P_Db4oDatabaseActivationDepth				, 15);
		store.setDefault(PreferenceConstantsServer.P_Db4oDatabaseTransparentActivationSupport	, true);
		store.setDefault(PreferenceConstantsServer.P_Db4oDatabaseUUIDSupport					,false);
	}

}
